package Operation;

import Book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-06-02
 * Time: 21:43
 */
public class ShowOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("4. 展示图书");
        int sz = bookList.getBookSize();
        for (int i = 0; i < sz; i++) {
            System.out.println(bookList.getBook(i));
        }
    }
}
